<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <title>分配权限</title>
  <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
  <link href="/static/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet"/>
  <link rel="stylesheet" href="/static/include/css/style.css">
<!--  <script th:inline="javascript">-->
<!--    var list = [[${idePermList}]];-->
<!--  </script>-->
  <style>
    .perButn {
      margin-top: 10px;
      margin-left: 10px;
      margin-right: 10px;
      margin-bottom: 10px;
    }
  </style>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  <input type="hidden" name="roleId" id="roleId" filed="roleId"/>
  <div class="nav-tabs-custom">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#tab_menus" data-toggle="tab"> 菜单权限 </a></li>
      <li><a href="#tab_ides" data-toggle="tab"> IDE权限 </a></li>
    </ul>
    <!-- <div class="form-group">
        <label class="col-sm-3 control-label">菜单权限</label>
        <div class="col-sm-8">
          <div id="menuTrees" class="ztree"></div>
        </div>
      </div> -->
    <div class="tab-content">
      <!-- 菜单权限tab -->
      <div class="tab-pane active" id="tab_menus">
        <div id="menuTrees" class="ztree"></div>
      </div>
      <!-- ide权限tab -->
      <div class="tab-pane" id="tab_ides">
        <div class="row">
          <div class="col-md-12">
            <div class="portlet light form-fit bordered">
              <div class="portlet-body form" id="ideBox">
               <!-- <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('create_')"><i
                    class="fa fa-edit"></i>创建权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('query_')"><i
                    class="fa fa-edit"></i>查看权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('register_')"><i class="fa fa-edit"></i>注册权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('generate_')"><i class="fa fa-edit"></i>生成权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('delete_')"><i
                    class="fa fa-edit"></i>删除权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('reference_')"><i class="fa fa-edit"></i>引用权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('pack_')"><i class="fa fa-edit"></i>打包权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('export_')"><i
                    class="fa fa-edit"></i>导出权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('update_')"><i
                    class="fa fa-edit"></i>更新权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('modify_')"><i
                    class="fa fa-edit"></i>修改权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('compile_')"><i class="fa fa-edit"></i>编译权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('config_')"><i
                    class="fa fa-edit"></i>配置权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('deploy_')"><i
                    class="fa fa-edit"></i>部署权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('import_')"><i
                    class="fa fa-edit"></i>导入权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('debug_')"><i
                    class="fa fa-edit"></i>调试权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('upload_')"><i
                    class="fa fa-edit"></i>上传权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('saveas_')"><i class="fa fa-edit"></i>另存为权限</a>
                <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('fastopen_')"><i class="fa fa-edit"></i>快捷打开方式权限</a>-->
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<div id="permBtnLayer" style="display: none;">
  <div id="permContent" style="margin-top: 8px;margin-left: 8px; width: 730px; height: 300px;">

  </div>
  <!-- 	<div class="form-actions" style="margin-right:10px; position:absolute; right:5px; bottom:5px;" align="right">
      <button type="button" class="btn blue-hoki"  style="margin-top:10px;" onclick="slecetedAllPerm()">全选</button>
      <button type="button" class="btn blue-hoki"  style="margin-top:10px;" onclick="savePermLayer()">保存</button>
      <button type="button" class="btn blue-hoki"  style="margin-top:10px;" onclick="closePermLayer()">关闭</button>
    </div> -->
</div>
<script id="ideTpl" type="text/html">
  {{# layui.each(d.list, function(index, item){ }}
  <a class="btn btn-xs  btn-warning perButn" onclick="permBtn('{{ item }}')"><i class="fa fa-edit"></i>{{item}}</a>
  {{# }); }}
</script>
<script src="/static/include/js/footer.js"></script>
<script src="/static/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script src="/static/pages/sysadm/role/rolePerm.js"></script>
</body>
</html>